home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 24 / CU Amiga Magazine's Super CD-ROM 24 (1998)(EMAP Images)(GB)(Track 1 of 2)[!][issue 1998-07].iso / CUCD / Utilities / vim-5.1 / src / testdir / test13.in < prev    next >
Encoding:
Text File  |  1997-04-25  |  630 b   |  36 lines

  1. Tests for autocommands on :close command
  2.  
  3. Write three files and open them, each in a window.
  4. Then go to next window, with autocommand that deletes the previous one.
  5. Do this twice, writing the file.
  6.  
  7. STARTTEST
  8. :/start of testfile/,/end of testfile/w! Xtestje1
  9. :/start of testfile/,/end of testfile/w! Xtestje2
  10. :/start of testfile/,/end of testfile/w! Xtestje3
  11. :e Xtestje1
  12. otestje1
  13. :w
  14. :sp Xtestje2
  15. otestje2
  16. :w
  17. :sp Xtestje3
  18. otestje3
  19. :w
  20. 
  21. :au WinLeave testje bdel
  22. 
  23. :w! test.out
  24. :au WinLeave testje bdel testje3
  25. :close
  26. :w >>test.out
  27. :!rm -rf Xtestje*
  28. :qa!
  29. ENDTEST
  30.  
  31. start of testfile
  32.     contents
  33.     contents
  34.     contents
  35. end of testfile
  36.